<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>产生1~100的随机数</title>
    <script>
        var number = Math.floor(Math.random()*100)+1;
        document.write(number)
    </script>
</head>
<body>

</body>
</html>